import request from '@/utils/request'

// 查询系统运行错误日志列表
export function listAlarmLog(query) {
  return request({
    url: '/devops/alarmLog/list',
    method: 'get',
    params: query
  })
}

// 查询系统运行错误日志详细
export function getAlarmLog(id) {
  return request({
    url: '/devops/alarmLog/' + id,
    method: 'get'
  })
}

// 新增系统运行错误日志
export function addAlarmLog(data) {
  return request({
    url: '/devops/alarmLog',
    method: 'post',
    data: data
  })
}

// 修改系统运行错误日志
export function updateAlarmLog(data) {
  return request({
    url: '/devops/alarmLog',
    method: 'put',
    data: data
  })
}

// 删除系统运行错误日志
export function delAlarmLog(id) {
  return request({
    url: '/devops/alarmLog/' + id,
    method: 'delete'
  })
}

// 导出系统运行错误日志
export function exportAlarmLog(query) {
  return request({
    url: '/devops/alarmLog/export',
    method: 'get',
    params: query
  })
}